<template>
  <p>内联事件处理器</p>
  <button @click="addCount('按钮')">
    <h1>超级大按钮</h1>
  </button>
  <p>{{ count }}</p>
</template>

<script>
export default {
  data() {
    return {
      count: 0
    }
  }
  , methods: {
    // event对象
    addCount(msg) {
      // Vue中的event对象 就是原生JS中的Event对象 
      // console.log(e.target)
      // e.target.innerHTML = 'ADD' + this.count
      console.log(msg)

      this.count++
    }
  }
}
</script>